#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# ======================================================
# @File:      : pack_whl
# @Author     : forward_huan
# @Date       : 2024/10/26 20:23
# @Desc       :
# ======================================================
import os

from apidoc_md.main import create_md
from pack_tool import dirPath
from pack_tool.pack.pack_whl import createWhl
from pack_tool.version import getVersionNum


def getPyPath(root_path):
    """获取python路径"""
    return os.path.join(root_path, "venv", "Scripts", "python.exe")


def run():
    pkg_name = "net_utils"
    root_path = dirPath(os.path.abspath(__file__), level=1)
    createWhl(
        root_path, pkg_name, name=pkg_name, version=getVersionNum(10), include_source=False,
        long_desc="", whl_dir=os.path.join(root_path, "out"), python_path=getPyPath(root_path),
        install_requires=[]
    )


if __name__ == '__main__':
    run()
